package com.it135.citytraffic.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crossing")
public class Crossing implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 路口的名字
     */
    private String name;

    /**
     * 道路等级
     */
    private Integer level;

    /**
     * 经纬度
     */
    private String position;

    /**
     * 开始时间
     */
    private LocalDateTime createTime;

    /**
     * 判断路口是否被停止检测,0 禁用    1可用
     */
    private Integer forbidden;

    /**
     * 所在区
     */
    private String region;

    /**
     * 城市编码
     */
    private String cityCode;
    /**
     * 分析缓存
     */
    private String analyseCache;

    /**
     * 缓存更新时间
     */
    private LocalDateTime analyseLastUpdate;

    private String reasonAnalyseCache;

    private String suggestion;
}
